<template>
	<div>layout</div>
	<!-- <div>$route:{{ $route }}</div> -->
	<div>$route.name:{{ $route.fullPath }}</div>
	<router-view v-slot="{ Component }">
		<keep-alive>
			<component
				:is="Component"
				:key="$route.fullPath"
				v-if="$route.meta.keepAlive"
			/>
		</keep-alive>
		<component
			:is="Component"
			:key="$route.fullPath"
			v-if="!$route.meta.keepAlive"
		/>
	</router-view>
</template>

<script setup lang="ts"></script>

<style scoped></style>
